package com.hgkj.cloud.base.dao;

import com.hgkj.cloud.base.domain.TenantConsult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TenantConsultMapper {

	 int deleteByPrimaryKey(@Param("id") Long id) ;

	 int insert(TenantConsult record);

	 int insertSelective(TenantConsult record);

	 TenantConsult selectByPrimaryKey(@Param("id") Long id) ;

	 int updateByPrimaryKeySelective(TenantConsult record) ;

	 int updateByPrimaryKey(TenantConsult record);

	 List<Map<String, Object>> listConsult( Map<String, Object> map) ;

	 List<Map<String, Object>> listConsults(Map map);

	 long getListConsultCount(Map<String, Object> map);

	 List<Long> getListConsultCounts(Map<String, Object> map);

	 List<Map<String, Object>> listConsultDetail( Map<String, Object> map) ;

	 long getListConsultDetailCount(Map<String, Object> map) ;

	 int addPlaytour(Map<String, Object> map) ;

	 Map<String, Object> findPsyPlaytourBymap(Map<String, Object> map) ;

	List<Map<String, Object>> listConsultNew(Map<String, Object> map);

	long getListConsultCountNew(Map<String, Object> map);

	Map<String,Long> getUserConsultCount(Map<String, Object> map);

	Long listDeviceReportsByUserCount(Map<String, Object> map);

	List<Map<String,String>> getUserConsult(Map<String, Object> map);

	Long getUserConsultsCount(Map<String, Object> map);

	List<Map<String,Object>> listDeviceReportsByUser(Map<String, Object> map);
}